package com.terry.test2.new2;

import com.terry.test2.Result;
import com.terry.test2.dp.Account;
import com.terry.test2.dp.ExchangeRate;
import com.terry.test2.dp.Money;

import javax.xml.bind.ValidationException;

/**
 * @author 小八
 * @date 2023年02月02日10:49
 */
public interface AccountTransferService {
    Result<Boolean> transfer(Account sourceAccount, Account targetAccount, Money money, ExchangeRate exchangeRate) throws ValidationException;

}
